import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      component: () => import('../views/login.vue'),
    },  {
      path: '/index',
      component: () => import('../views/Index.vue'),
      children:[
        { path: '/portrait1', name: 'portrait1', component: () => import('../views/Portrait1.vue') },
        { path: '/portrait2', name: 'portrait2', component: () => import('../views/Portrait2.vue') },
        {
          path: '/emergency',
          name: 'emergency',
          component: () => import('../views/emergency.vue'),
        },
        {
          path: '/log',
          name: 'log',
          component: () => import('../views/log.vue'),
        },
        {
          path: '/conversion',
          name: 'conversion',
          component: () => import('../views/conversion.vue'),
        },
        {
          path: '/event',
          name: 'event',
          component: () => import('../views/event.vue'),
        },
        {
          path: '/businessPortrait',
          name: 'businessPortrait',
          component: () => import('../views/businessPortrait.vue'),
        },{
          path: '/businessAlert',
          name: 'businessAlert',
          component: () => import('../views/businessAlert.vue'),
        },{
          path: '/businessNet',
          name: 'businessNet',
          component: () => import('../views/businessNet.vue'),
        },{
          path: '/businessApp',
          name: 'businessApp',
          component: () => import('../views/businessApp.vue'),
        },{
          path: '/businessTrade',
          name: 'businessTrade',
          component: () => import('../views/businessTrade.vue'),
        },{
          path: '/businessUrl',
          name: 'businessUrl',
          component: () => import('../views/businessUrl.vue'),
        },{
          path: '/businessEvent',
          name: 'businessEvent',
          component: () => import('../views/businessEvent.vue'),
        },{
          path: '/businessAddress',
          name: 'businessAddress',
          component: () => import('../views/businessAddress.vue'),
        },{
          path: '/businessSave',
          name: 'businessSave',
          component: () => import('../views/businessSave.vue'),
        }, ,{
          path: '/businessLog',
          name: 'businessLog',
          component: () => import('../views/businessLog.vue'),
        }, ,{
          path: '/businessPhoto',
          name: 'businessPhoto',
          component: () => import('../views/businessPhoto.vue'),
        },  {
          path: '/businessSend',
          name: 'businessSend',
          component: () => import('../views/businessSend.vue'),
        },  
        {
          path: '/sysBase',
          name: 'sysBase',
          component: () => import('../views/sysBase.vue'),
        },{
          path: '/sysRole',
          name: 'sysRole',
          component: () => import('../views/sysRole.vue'),
        },{
          path: '/sysRoleSetting',
          name: 'sysRoleSetting',
          component: () => import('../views/sysRoleSetting.vue'),
        },{
          path: '/sysAcount',
          name: 'sysAcount',
          component: () => import('../views/sysAcount.vue'),
        },{
          path: '/sysLog',
          name: 'sysLog',
          component: () => import('../views/sysLog.vue'),
        },{
          path: '/sysServer',
          name: 'sysServer',
          component: () => import('../views/sysServer.vue'),
        },
        {
          path: '/reportBase',
          name: 'reportBase',
          component: () => import('../views/report/reportBase.vue'),
        },{
          path: '/reportAng',
          name: 'reportAng',
          component: () => import('../views/report/reportAng.vue'),
        },{
          path: '/reportLog',
          name: 'reportLog',
          component: () => import('../views/report/reportLog.vue'),
        },{
          path: '/reportSafe',
          name: 'reportSafe',
          component: () => import('../views/report/reportSafe.vue'),
        },{
          path: '/reportSub',
          name: 'reportSub',
          component: () => import('../views/report/reportSub.vue'),
        } 
      ]
    } 
  ],
});
